package com.bw.config;

import io.minio.*;
import io.minio.errors.MinioException;

import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

public class FileUploader {

    public static void main(String[] args)
            throws IOException, NoSuchAlgorithmException, InvalidKeyException {
        //            // Create a minioClient with the MinIO server playground, its access key and secret key.
//            MinioClient minioClient =
//                    MinioClient.builder()
//                            .endpoint("https://play.min.io")
//                            .credentials("Q3AM3UQ867SPQQA43P2F", "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG")
//                            .build();
//
//            // Upload known sized input stream.
//            minioClient.putObject(
//                    PutObjectArgs.builder().bucket("my-bucketname").object("my-objectname").stream(
//                                    inputStream, size, -1)
//                            .contentType("video/mp4")
//                            .build());
    }
}
